//
//  XTCCollectVisitors.m
//  ppkc2016
//
//  Created by 拼凑的断音 on 16/3/31.
//  Copyright © 2016年 拼凑的断音. All rights reserved.
//

#import "XTCCollectVisitors.h"


@interface XTCCollectVisitors ()

@property (nonatomic,strong) XVVReleasePersonInfomation *view;

@end

@implementation XTCCollectVisitors
-(XVVReleasePersonInfomation*)view
{
    if (_view==nil)
    {
        _view = [[XVVReleasePersonInfomation alloc] init];
        [self addSubview:_view];
    }
    return _view;
}

-(void)initUI
{
    self.backgroundColor = [UIColor clearColor];
    [self view];
}

-(void)refreshLayout:(CGRect)frame
{
    _view.frame = CGRectMake(0, 0, frame.size.width, frame.size.height);
}

-(void)setCellData:(XMLRealsePersonInformation *)model
{
    [_view setData:model personType:XVVReleasePersonInfomationVisitor];
}

+(CGFloat)getHeightWithData:(XMLRealsePersonInformation *)model
{
    return [XVVReleasePersonInfomation getHeight:model personType:XVVReleasePersonInfomationVisitor];
}

@end
